package com.soft.manage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.soft.common.annotation.Excel;
import com.soft.common.core.domain.BaseEntity;

/**
 * 模板信息对象 template_message
 *
 * @author mobin
 * @date 2025-06-02
 */
@TableName(resultMap = "com.soft.manage.mapper.TemplateMessageMapper.TemplateMessageResult")
public class TemplateMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 模板名称
     */
    @Excel(name = "模板名称")
    private String templateName;

    /**
     * 模板类型
     */
    @Excel(name = "模板类型")
    private Long templateType;

    /**
     * 模板内容
     */
    @Excel(name = "模板内容")
    private String content;

    /**
     * 是否启用
     */
    @Excel(name = "是否启用")
    private Long enable;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateType(Long templateType) {
        this.templateType = templateType;
    }

    public Long getTemplateType() {
        return templateType;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setEnable(Long enable) {
        this.enable = enable;
    }

    public Long getEnable() {
        return enable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("templateName", getTemplateName())
                .append("templateType", getTemplateType())
                .append("content", getContent())
                .append("enable", getEnable())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
